package com.liuzu.esys.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class GoodBo {
    @ExcelProperty(value = "编号")
    private Integer id;
    @ExcelProperty(value = "商品名称")
    private String name;
    @ExcelProperty(value = "商品类型")
    private String type;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    @ExcelProperty(value = "生产地址")
    private String address;
    @ExcelProperty(value = "商品价格")
    private Integer price;

}
